<!DOCTYPE html>
<html lang="en">
  <head>
  	<?php $settings = AdminSettings::first(); ?>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="<?php echo $settings->description; ?>">
    <meta name="keywords" content="<?php echo $settings->keywords; ?>" />
    <link rel="shortcut icon" href="<?php echo URL::asset('public/img/favicon.ico'); ?>" />

    <title>Join - <?php echo $settings->title; ?></title>

    <?php echo $__env->make('includes.css_general', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

  </head>

  <body id="join-section">
     
     <?php echo $__env->make('includes.navbar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    
    
<!-- Start CONTAINER -->
<div class="container wrap-ui">
	<!-- ROW -->
	<div class="row">
        
     	<!-- Col MD -->
<div class="col-md-12">	
	
	<div class="row">
		
		<div class="col-md-12">
			
			<h3 class="text-center join-title">Sign up in <?php echo $settings->title; ?></h3>
			<h4 class="text-center join-title">Already have an account? <a href="login" class="btn btn-xs btn-success no-shadow font-default btn-join margin-zero">Sign In</a></h4>
		
			
		<div class="login-form">
			<?php if(Session::has('notification')): ?>
			<div class="alert alert-success btn-sm margin-zero" role="alert">
            		<?php echo Session::get('notification'); ?>

            		</div>
            	<?php endif; ?>
          	<form action="<?php echo URL::to('join'); ?>" method="post" name="form" id="signup_form">
           
            <div class="form-group">
              <input type="text" class="form-control login-field" value="<?php echo Input::old('full_name'); ?>" name="full_name" id="full_name" placeholder="Full name" title="Full name" autocomplete="off">
              <label class="login-field-icon fui-user" for="full_name"></label>
              
              <?php if( $errors->first("full_name") ): ?>
              <div class="alert alert-danger btn-sm margin-top-alert" role="alert">
            		<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            		<strong><?php echo $errors->first("full_name"); ?></strong>
            		</div>
            	<?php endif; ?>
              
            </div>
            
            <div class="form-group">
              <input type="text" class="form-control login-field" value="<?php echo Input::old('username'); ?>" name="username" id="username" placeholder="Username" title="Username" autocomplete="off">
              <label class="login-field-icon fui-user" for="username"></label>
              
              <?php if( $errors->first("username") ): ?>
              <div class="alert alert-danger btn-sm margin-top-alert" role="alert">
            		<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            		<strong><?php echo $errors->first("username"); ?></strong>
            		</div>
            	<?php endif; ?>
              
            </div>
            
            <div class="form-group">
              <input type="text" class="form-control login-field" value="<?php echo Input::old('email'); ?>" name="email" id="email" placeholder="Email" title="Email" autocomplete="off">
              <label class="login-field-icon fui-mail" for="email"></label>
              
              <?php if( $errors->first("email") ): ?>
              <div class="alert alert-danger btn-sm margin-top-alert" role="alert">
            		<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            		<strong><?php echo $errors->first("email"); ?></strong>
            		</div>
            	<?php endif; ?>
            	
            </div>
            
            <div class="form-group">
              <input type="password" class="form-control login-field" name="password" id="password" placeholder="Password" title="Password" autocomplete="off">
              <label class="login-field-icon fui-lock" for="password"></label>
            
            <?php if( $errors->first("password") ): ?>
              <div class="alert alert-danger btn-sm margin-top-alert" role="alert">
            		<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            		<strong><?php echo $errors->first("password"); ?></strong>
            		</div>
            	<?php endif; ?>
            </div>
                     
           <button type="submit" id="buttonSubmit" class="btn btn-block btn-lg btn-success">Sign up</button>

			<span class="login-link" id="twitter-btn-text">Or Sign up with...</span>

					<div class="facebook-login" id="twitter-btn">
						<a href="http://socialpro.miguelvasquez.net/oauth/?oauth_provider=twitter" class="btn btn-block btn-lg btn-info"><i class="fa fa-twitter"></i> Twitter</a>
					</div>
							
    	<label class="text-center">
		   <span class="label-terms">Once you click to Sign up you agree with our Terms and Conditions</span>
		</label>

          </form></div>
			
		</div><!-- /COL MD -->
		
		<div class="col-md-8">
								
		</div><!-- /COL MD -->
		
	</div><!-- /Row -->
    	
 </div><!-- /COL MD -->
    	
</div><!-- /Row -->

    </div> <!-- /container -->
    
    <?php echo $__env->make('includes.javascript_general', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    
    <script type="text/javascript">
    
    $('#full_name').focus();
    
    <?php if(Session::has('notification')): ?>
    	$('#signup_form').remove();
    <?php endif; ?>
    
    // URL BASE
    var URL_BASE = "<?php echo URL::to('/'); ?>";
    
    // Tooltip
    $('.shotTooltip').tooltip();
    
    </script>
    
  </body>
</html>